package com.example.resourceSharingPlatform.security_controller;


import com.example.resourceSharingPlatform.security_entity.Users;
import com.example.resourceSharingPlatform.security_service.UsersService;
import com.example.resourceSharingPlatform.security_service.impl.UsersServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class UsersController {
    //security_service.UsersService
    @Autowired
    private UsersServiceImpl usersService;

    /**
     * 1.新增Users信息 POST
     * parameterBody: Users users
     * */

    @PostMapping("/users")
    Boolean addUsers(@RequestBody Users users){
        return usersService.insertUsers(users);
    }
}
